.food-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f8f9fa;
}

body {
    background: url('../images/9.jpg') center/cover fixed no-repeat;
    padding: 20px;
    min-height: 100vh;
}

.page-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.page-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    margin: 15px auto;
    border-radius: 2px;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    padding: 20px;
}

.food-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.food-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.food-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.food-card:hover img {
    transform: scale(1.05);
}

.food-title {
    padding: 20px;
    text-align: center;
    font-size: 1.3em;
    color: #2c3e50;
    font-weight: 600;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-body {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* 美化滚动条 */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #e74c3c;
    background-color: rgba(0, 0, 0, 0.05);
}

#modalTitle {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

#modalImage {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#modalDescription {
    line-height: 1.8;
    color: #444;
    font-size: 1.1em;
    padding: 20px 0;
}

#modalDescription h3 {
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-size: 1.4em;
    position: relative;
    padding-left: 15px;
}

#modalDescription h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #3498db;
    border-radius: 2px;
}

#modalDescription ul {
    list-style-type: none;
    margin: 15px 0;
    padding-left: 20px;
}

#modalDescription li {
    margin: 10px 0;
    position: relative;
    padding-left: 25px;
}

#modalDescription li:before {
    content: '•';
    color: #3498db;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2em;
    }

    .food-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }

    #modalImage {
        height: 300px;
    }

    #modalTitle {
        font-size: 1.6em;
    }

    #modalDescription {
        font-size: 1em;
    }
}
